package com.hdoit.apollo.web.wechat.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.tennetcn.authority.component.annotation.AuthPassport;
import com.tennetcn.authority.component.web.BaseController;

@Controller
@RequestMapping(value = "/wechat/hdoitHome/")
public class HdoitHomeController extends BaseController{

	@Override
	public String getRoutePath() {
		
		 return "areas/wechat/hdoitHome/";
	}

	private final String indexViewName="index";
	private final String aboutViewName="about-us";
	private final String contactViewName="contact-us";
	private final String helpViewName="help";
	
	@AuthPassport
	@RequestMapping(value = helpViewName, method = { RequestMethod.GET,RequestMethod.POST })
    public String help(Model model){


        return view(helpViewName);
    }
	
	@AuthPassport
	@RequestMapping(value = contactViewName, method = { RequestMethod.GET,RequestMethod.POST })
    public String contact(Model model){


        return view(contactViewName);
    }
	
	@AuthPassport
	@RequestMapping(value = aboutViewName, method = { RequestMethod.GET,RequestMethod.POST })
    public String about(Model model){


        return view(aboutViewName);
    }
	
	@AuthPassport
	@RequestMapping(value = indexViewName, method = { RequestMethod.GET,RequestMethod.POST })
    public String index(Model model){


        return view(indexViewName);
    }
}
